import Layout from '@/layout'

const workflowRouter = [
  {
    path: '/workflow',
    component: Layout,
    name: 'workflow',
    redirect: '/workflow/flowCategory',
    alwaysShow: true,
    meta: { title: 'workflow', icon: 'zip' },
    children: [
      {
        path: 'flowCategory',
        component: () => import('@/views/workflow/flowCategory/formFlowCategory'),
        name: 'flowCategory',
        meta: { title: '分类管理 - ' }
      },
      {
        path: 'formFlowEntry',
        component: () => import('@/views/workflow/flowEntry/formFlowEntry'),
        name: 'formFlowEntry',
        meta: { title: '流程设计 - ' }
      },
      {
        path: 'formAllInstance',
        component: () => import('@/views/workflow/taskManager/formAllInstance'),
        name: 'formAllInstance',
        meta: { title: '流程实例 - ' }
      }
    ]
  }
]
export default workflowRouter
